import Vue from 'vue'
import App from './App.vue'
import router from './router'
// import './plugins/element.js'
import "./assets/effect";
// 富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
Vue.use(VueQuillEditor)
// 树状表格插件
import TreeTable from 'vue-table-with-tree-grid'
// 进度条
import NProgress from 'nprogress'
// 重置样式 与公共样式
import './assets/css/reset.css';
import './assets/css/global.css'
import './assets/fonts/iconfont.css'

Vue.config.productionTip = false
Vue.component('tree-table',TreeTable)
 
Vue.filter('dataFormat',function(originVal){
  const dt = new Date(originVal);
  const y = dt.getFullYear()
  const m = (dt.getMonth() +  1 + '').padStart(2,'0')
  const d = (dt.getDate() + '').padStart(2,'0')

  const hh = (dt.getHours() + '').padStart(2,'0')
  const dd = (dt.getMinutes() + '').padStart(2,'0')
  const ss = (dt.getSeconds() +'').padStart(2,'0')

  return `${y}-${m}-${d} ${hh}:${dd}:${ss}`;
})

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
